import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Book, BookComment } from './book.entity';
import { UserBook } from './entities/user-book.entity'; // 已有导入
import { BookService } from './book.service';
import { BookController } from './book.controller';

@Module({
  imports: [
    TypeOrmModule.forFeature([Book, BookComment, UserBook]), // 新增UserBook实体注册
  ],
  controllers: [BookController],
  providers: [BookService],
  exports: [BookService],
})
export class BookModule {}

